module.exports = class CommonService {
  static async home(ctx, { mysql, redis, next }) {
    ctx.log.error("xxxx");
    let home = await mysql.models.home.create({ title: "levenx" });
    let xxx = await redis.getSync("xxx");
    return {
      code: 0,
      redis: xxx,
    };
  }

  static async mail(ctx) {
    ctx.mail("1025534801@qq.com","koa保姆级集成服务","koa保姆级集成服务")
  }
};
